home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util1 / yk211src.lha / Yak_2.11_Src / Prefs / Include / Keydef_window.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  2KB  |  88 lines

  1.  
  2. #ifndef KEYDEFWIN_H
  3.  
  4. #define KEYDEFWIN_H
  5.  
  6. #ifndef INTUITION_INTUITION_H
  7. #include <intuition/intuition.h>
  8. #endif
  9. #ifndef LIBRARIES_GADTOOLS_H
  10. #include <libraries/gadtools.h>
  11. #endif
  12.  
  13.  
  14. /* KeyDef window gadgets */
  15.  
  16. #define GDX_Class            0
  17. #define GDX_Stroke           1
  18. #define GDX_Desc             2
  19. #define GDX_Ok               3
  20. #define GDX_Cancel           4
  21. #define GDX_Clear            5
  22. #define GDX_Help             6
  23.  
  24. /* Number of gadgets */
  25.  
  26. #define KeyDef_CNT         7
  27.  
  28.  
  29.  
  30. /* Global variables */
  31.  
  32. #ifdef GADTOOLS
  33. GLOBAL struct Window        *KeyDefWnd;
  34. GLOBAL struct Gadget        *KeyDefGList;
  35. GLOBAL struct Gadget        *KeyDefGadgets[KeyDef_CNT];
  36. GLOBAL UWORD                 KeyDefWidth;
  37. GLOBAL UWORD                 KeyDefHeight;
  38. GLOBAL UBYTE                *KeyDefWdt;
  39. GLOBAL UWORD                 KeyDefGTypes[];
  40. GLOBAL struct NewGadget      KeyDefNGad[];
  41. GLOBAL ULONG                 KeyDefGTags[];
  42. #endif
  43.  
  44. GLOBAL UBYTE                *Class0Labels[];
  45. GLOBAL UBYTE                *Stroke0Labels[];
  46.  
  47.  
  48. /* Exported functions */
  49.  
  50. GLOBAL VOID InitClass0Labels  (VOID);
  51. GLOBAL VOID InitStroke0Labels (VOID);
  52. GLOBAL BOOL SwitchToKeyDefWindow (UBYTE I_ParentWindowID, APTR I_object, char *I_action);
  53. GLOBAL LONG HandleKeyDefIDCMP (VOID);
  54. GLOBAL VOID CloseKeyDefWindow (VOID);
  55. GLOBAL VOID KeyDefRender      (VOID);
  56. GLOBAL int  OpenKeyDefWindow  (VOID);
  57. GLOBAL BOOL ShowKeyDefWindow  (VOID);
  58.  
  59.  
  60. #ifdef MUI
  61. GLOBAL APTR              KeyDefWnd;
  62. GLOBAL APTR              KeyDefObjects[];
  63. GLOBAL UBYTE            *KeyDefWdt;
  64. #endif
  65.  
  66. #ifdef BGUI                     /* NMC */
  67. GLOBAL struct Window    *KeyDefWnd;
  68. GLOBAL Object           *KeyDefObjects[];
  69. #endif
  70.  
  71. #if defined(MUI) || defined(BGUI)               /* NMC */
  72. #define CYC_Class               KeyDefObjects[GDX_Class]
  73. #define CYC_Stroke              KeyDefObjects[GDX_Stroke]
  74. #define STR_Desc                KeyDefObjects[GDX_Desc]
  75. #define BT_Ok                   KeyDefObjects[GDX_Ok]
  76. #define BT_Cancel2              KeyDefObjects[GDX_Cancel]
  77. #define BT_Clear                KeyDefObjects[GDX_Clear]
  78. #define BT_Help                 KeyDefObjects[GDX_Help]
  79.  
  80. GLOBAL APTR CreateKeyDefWindow   (VOID);
  81. GLOBAL BOOL ShowKeyDefWindow     (VOID);
  82. GLOBAL VOID CloseKeyDefWindow    (VOID);
  83. GLOBAL LONG HandleKeyDefReturnID (LONG id);
  84.  
  85. #endif /* MUI or BGUI */
  86.  
  87. #endif /* KEYDEFWIN_H */
  88.